package server;

import java.sql.SQLException;

import org.h2.tools.Server;

import com.cn.fw4j.jdbc.sources.impl.H2DbDataSoruce;

public class StartH2DB {
	
	public static void main(String[] args){
		try {
			Server server = Server.createTcpServer( "-tcpPort", "9123").start();
			H2DbDataSoruce h2 = new H2DbDataSoruce();
			server.startWebServer(h2.getConnection());
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
